<?php /* Smarty version 2.6.19, created on 2008-09-22 15:58:46
         compiled from ./admin/posts-list.tpl */ ?>
<span><a href="./post.php?f=add">add a new post</a></span> &nbsp;<span><a href="./post.php?f=dirtyposts">dirty posts</a></span>
<div class="admin-right">
	<table class="olt">
        <tr><td>ID</td><td>Title</td><td align="right" nowrap="nowrap">&nbsp;&nbsp;&nbsp;&nbsp;Content</td><td align="right">add time</td><td align="right">usefull</td><td align="right">opertor</td></tr>
        <?php unset($this->_sections['post']);
$this->_sections['post']['name'] = 'post';
$this->_sections['post']['loop'] = is_array($_loop=$this->_tpl_vars['posts_list']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['post']['show'] = true;
$this->_sections['post']['max'] = $this->_sections['post']['loop'];
$this->_sections['post']['step'] = 1;
$this->_sections['post']['start'] = $this->_sections['post']['step'] > 0 ? 0 : $this->_sections['post']['loop']-1;
if ($this->_sections['post']['show']) {
    $this->_sections['post']['total'] = $this->_sections['post']['loop'];
    if ($this->_sections['post']['total'] == 0)
        $this->_sections['post']['show'] = false;
} else
    $this->_sections['post']['total'] = 0;
if ($this->_sections['post']['show']):

            for ($this->_sections['post']['index'] = $this->_sections['post']['start'], $this->_sections['post']['iteration'] = 1;
                 $this->_sections['post']['iteration'] <= $this->_sections['post']['total'];
                 $this->_sections['post']['index'] += $this->_sections['post']['step'], $this->_sections['post']['iteration']++):
$this->_sections['post']['rownum'] = $this->_sections['post']['iteration'];
$this->_sections['post']['index_prev'] = $this->_sections['post']['index'] - $this->_sections['post']['step'];
$this->_sections['post']['index_next'] = $this->_sections['post']['index'] + $this->_sections['post']['step'];
$this->_sections['post']['first']      = ($this->_sections['post']['iteration'] == 1);
$this->_sections['post']['last']       = ($this->_sections['post']['iteration'] == $this->_sections['post']['total']);
?>
        <tr class="pl">
	        <td><?php echo $this->_tpl_vars['posts_list'][$this->_sections['post']['index']]['id']; ?>
</td>
	        <td><a href="./post.php?f=show&id=<?php echo $this->_tpl_vars['posts_list'][$this->_sections['post']['index']]['id']; ?>
"> <?php echo $this->_tpl_vars['posts_list'][$this->_sections['post']['index']]['title']; ?>
</a></td>
	        <td/><?php echo $this->_tpl_vars['posts_list'][$this->_sections['post']['index']]['content']; ?>
</td>
	        
	        <td  align="right" nowrap="nowrap">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $this->_tpl_vars['posts_list'][$this->_sections['post']['index']]['date_added']; ?>
</td>
	        <td  align="right" nowrap="nowrap">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $this->_tpl_vars['posts_list'][$this->_sections['post']['index']]['valid']; ?>
</td>
	        <td  align="right" nowrap="nowrap">&nbsp;&nbsp;&nbsp;&nbsp;<a href='post.php?f=delete&id=<?php echo $this->_tpl_vars['posts_list'][$this->_sections['post']['index']]['id']; ?>
' title="delete me">X</a>&nbsp;<a href='post.php?f=modify&id=<?php echo $this->_tpl_vars['posts_list'][$this->_sections['post']['index']]['id']; ?>
' title="modify me">modify</a></td>
        </tr>
        <?php endfor; endif; ?>
        </table>

</div>